﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Publico/PublicoAcademia.master"
    AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Publico_Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
    .style1
    {}
        .style3
        {
            width: 183px;
        }
        .style4
        {
            width: 66px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="login" runat="server" visible="true">
        <h2>
            Inicio de sesión</h2>
        <table>
            <tr>
                <td>
                    <asp:Label ID="lblUser" runat="server" Text="Usuario:"></asp:Label>
                </td>
                <td class="style3">
                    <asp:TextBox ID="txtUsuario" runat="server" CssClass="txt" Width="167px" 
                        MaxLength="50"></asp:TextBox>
                </td>
                <td class="style4">
                    <asp:RequiredFieldValidator ID="rfvUsuario" runat="server" 
                        ControlToValidate="txtUsuario" ErrorMessage="Debe ingresar un usuario" 
                        ForeColor="Red">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblPassword" runat="server" Text="Contraseña:"></asp:Label>
                </td>
                <td class="style3">
                    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" CssClass="txt" Width="167px"
                        MaxLength="20"></asp:TextBox>
                </td>
                <td class="style4">
                    <asp:RequiredFieldValidator ID="rfvPassword" runat="server" 
                        ControlToValidate="txtPassword" ErrorMessage="Debe ingresar un password" 
                        ForeColor="Red">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td class="style3">
                    <asp:ValidationSummary ID="valResumen" runat="server" ForeColor="Red" />
                </td>
                <td class="style4">
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td class="style1" colspan="2">
                    <asp:Label ID="lblMensaje" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td class="style3">
                    <asp:Button ID="btnIniciarSesion" runat="server" CssClass="btn" Text="Iniciar Sesión"
                        Width="127px" onclick="btnIniciarSesion_Click" />
                </td>
                <td class="style4">
                    &nbsp;</td>
            </tr>
        </table>
    </div>
</asp:Content>
